import { sendRequest } from '@/http';

const baseUrl = '/admin/device/install';

/**
 * 查询设备安装列表
 * @param
 * @returns
 */
export const queryInstallList = (params: {
  page: number;
  pageSize: number;
  deviceName?: string;
  modelCode?: string;
  deviceCode?: string;
  inventoryStatus?: number;
  installStart?: string;
  installEnd?: string;
}) => {
  return sendRequest({
    url: `${baseUrl}/queryList`,
    method: 'get',
    params: params as any,
  });
};

/**
 * 查询设备安装详情
 * @param deviceId 设备ID设备ID
 * @returns
 */
export const queryInstallDetail = (deviceId: string) => {
  return sendRequest({
    url: `${baseUrl}/queryDetail`,
    method: 'get',
    params: { deviceId },
  });
};
